Einhugur Xml Plugin for Xojo

AttributeIterator.Count Property

Returns count of attributes.

Count as Integer {Read}

Remarks

The Count property used to count attributes on a node:


var f as FolderItem = FolderItem.ShowOpenFileDialog(".xml")

if f <> nil then
    var doc as EinhugurXml.Document = new EinhugurXml.Document()
   
    var result as EinhugurXml.ParseResult = doc.LoadFromFile(f)
   
    if result.Success then
      
       var tools as EinhugurXml.Node = doc.Child("Profile").Child("Tools").FirstChild
      
       var count as Integer = tools.NodeAttributes.Count
      
       MessageBox(count.ToString())
    end if
end if

See Also

AttributeIterator Class